<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html:html>
<head>
	<%
		request.setCharacterEncoding("UTF-8");
	%>
	<base href="<%=basePath%>">
	<link rel="stylesheet" href="css/css.css" type="text/css"></link>
	<link rel="stylesheet" href="css/jquery.datepick.css" type="text/css"></link>
	<script type="text/javascript" src="js/global.js"></script>
	<script type="text/javascript" src="js/calendar.js"></script>
	<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
	<script type="text/javaScript" src="js/jquery/jquery.datepick.js"></script>
	<script type="text/javaScript" src="js/jquery/jquery.datepick.lang.js"></script>
	<script type="text/javaScript" src="js/jquery/jquery.datepick-zh-CN.js"></script>
	<script type="text/javascript" src="js/redetailer/redetailer4s.js"></script>
	<style type="text/css">
#leftSide {
	float: left;
	height: auto;
	width: 50%;
}

.inputFull {
	width: 100%;
}

#rightSide {
	float: left;
	height: auto;
	width: 50%;
}

.enum {
	background-color: #F5F5F5;
}
</style>
</head>
<body>
	<table width="100%" height="29" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td background="images/top-5.gif"
				style="font-size: 14px; font-weight: bold;" align="center">
				KA 拜访记录卡
			</td>
		</tr>
	</table>
	<table class="tab_back">
		<tr>
			<td>
				<table border=0 cellpadding=0 cellspacing=0 height=25>
					<tr align=middle>
						<td width=5>
							&nbsp;
						</td>
						<td class="tab_left">
							&nbsp;
						</td>
						<td class="tab_on" valign="bottom" nowrap="nowrap">
							KA 拜访记录卡
						</td>
						<td class="tab_right" valign="bottom">
							&nbsp;
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<table width="100%" border="0">
		<tr bgcolor="#D4D0C8">
			<td colspan="3" align="center" height="25">
				填写人信息
			</td>
		</tr>
	</table>
	<form id="mainForm"
		action="redetailer/createRedetailer4sAction.do?method=createRedetailer4s"
		method="post" onsubmit="return checkForm();">
		<table width="100%" border="1">
			<tr>
				<td class="enum" style="background-color: #F5F5F5">
					员工ID
				</td>
				<td>
					${bpId}
				</td>
				<td class="enum">
					建卡日期
				</td>
				<td>
					<input type="text" id="createDate" name="createDate" class="myDate" />
				</td>
				<td class="enum">
					拜访日期
				</td>
				<td>
					<input type="text" id="visitDate" name="visitDate" class="myDate" />
				</td>
			</tr>
		</table>
		<table width="100%" border="1">
			<tr bgcolor="#D4D0C8">
				<td colspan="8" align="center" height="25">
					联系方式
				</td>
			</tr>
			<tr>
				<td align="center" height="25" bgcolor="#F5F5F5" class="enum">
					id
				</td>
				<td align="center" height="25">
					${redetailerId}
				</td>
				<td align="center" height="25" bgcolor="#F5F5F5" bgcolor="#F5F5F5"
					class="enum" style="">
					4S店名称
				</td>
				<td align="center" height="25">
					<input type="text" id="name" name="name" />
				</td>
				<td align="center" height="25" class="enum">
					品牌
				</td>
				<td align="center" height="25">
					<select id="brand" name="brand">
						<option>
							选择
						</option>
						<c:forEach items="${carTypeTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25" class="enum">
					隶属集团
				</td>
				<td align="center" height="25">
					<input type="text" id="belonged" name="belonged" />
				</td>
			</tr>
			<tr>
				<td align="center" height="25" class="enum">
					省
				</td>
				<td align="center" height="25" class="enum">
					<select id="province" name="province">
						<option value="0">
							选择
						</option>
						<c:forEach items="${regionTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25" class="enum">
					市
				</td>
				<td align="center" height="25">
					<input type="text" id="city" name="city">
				</td>
				<td align="center" height="25" class="enum">
					地址
				</td>
				<td align="center" height="25">
					<input type="text" id="address" name="address">
				</td>
				<td align="center" height="25" class="enum">
					邮政编码
				</td>
				<td align="center" height="25">
					<input type="text" id="postCode" name="postCode">
				</td>
			</tr>
		</table>
		<table width="100%" border="1">
			<tr bgcolor="#D4D0C8">
				<td colspan="6" align="center" height="25">
					联系人信息
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newContract" />
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteContract" />
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table width="100%" border="1" id="contractTable">
			<thead>
				<tr>
					<td align="center" height="25">
						选择
					</td>
					<td align="center" height="25">
						联系人
					</td>
					<td align="center" height="25">
						职务
					</td>
					<td align="center" height="25">
						电话
					</td>
					<td align="center" height="25">
						传真
					</td>
					<td align="center" height="25">
						手机
					</td>
					<td align="center" height="25">
						email
					</td>
				</tr>
			</thead>
			<tbody>

			</tbody>
		</table>

		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="6" align="center" height="25">
					车间
				</td>
			</tr>
			<tr>
				<td align="center" height="25" class="enum">
					开业时间
				</td>
				<td align="center" height="25">
					<input type="text" size="4" id="openYear" name="openYear">
					年
					<input type="text" size="2" id="openMonth" name="openMonth">
					月
				</td>
				<td align="center" height="25" class="enum">
					车流量/月
				</td>
				<td align="center" height="25">
					<input type="text" size="4" id="vehicleTrip" name="vehicleTrip">
					辆次
				</td>
				<td align="center" height="25" class="enum">
					配件平均利润率
				</td>
				<td align="center" height="25">
					<input type="text" id="profit" name="profit">
					%
				</td>
				<td align="center" height="25" class="enum">
					工时费
				</td>
				<td align="center" height="25">
					<input type="text" id="taskTime" name="taskTime">
					元
				</td>
			</tr>
			<tr>
				<td align="center" height="25" class="enum">
					维修顾问人数
				</td>
				<td align="center" height="25">
					<input type="text" id="repairCount" name="repairCount">
				</td>
				<td align="center" height="25" class="enum">
					快修保养比例
				</td>
				<td align="center" height="25">
					<input type="text" id="repairRate" name="repairRate">
				</td>
				<td align="center" height="25" class="enum">
					机电工人数
				</td>
				<td align="center" height="25">
					<input type="text" id="motorhandCount" name="motorhandCount">
				</td>
				<td align="center" height="25" class="enum">
					工位数
				</td>
				<td align="center" height="25">
					<input type="text" id="seatCount" name="seatCount">
				</td>
			</tr>
		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					主要竞争品牌
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newComplete" name="newComplete" />
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteComplete"
						name="deleteComplete" />
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8"
			id="mainCompleteTable">
			<thead>
				<tr>
					<td align="center" height="25">
						选择
					</td>
					<td align="center" height="25">
						主要竞争品牌
					</td>
					<td align="center" height="25">
						主要竞争品牌月销量
					</td>
				</tr>
			</thead>
			<tbody>

			</tbody>
		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					轮胎
				</td>
			</tr>
		</table>
		<table width="100%" border="0">
			<tr>
				<td align="center" height="25" class="enum">
					轮胎采购模式:
				</td>
				<td align="center" height="25" class="enum">
					4S店自行采购:
				</td>
				<td align="center" height="25">
					<input id="selfPurchase" name="selfPurchase" type="checkbox" />
				</td>
				<td align="center" height="25" class="enum">
					4S店集团采购:
				</td>
				<td align="center" height="25">
					<input id="groupPurchase" name="groupPurchase" type="checkbox" />
				</td>
				<td align="center" height="25" class="enum">
					主机厂采购:
				</td>
				<td align="center" height="25">
					<input id="mainPurchase" name="mainPurchase" type="checkbox" />
				</td>
				<td align="center" height="25" class="enum">
					临时调货:
				</td>
				<td align="center" height="25">
					<input id="temPurchase" name="temPurchase" type="checkbox" />
				</td>
			</tr>
			<tr>
				<td align="center" height="25" class="enum">
					轮胎拆装工时费
				</td>
				<td align="center" height="25">
					<input type="text" id="dismountRate" name="dismountRate">
				</td>

				<td align="center" height="25" class="enum">
					动平衡价格
				</td>
				<td align="center" height="25">
					<input type="text" id="balancePrice" name="balancePrice" />
				</td>
				<td align="center" height="25" class="enum">
					四轮定位价格
				</td>
				<td align="center" height="25">
					<input type="text" id="setterPrice" name="setterPrice" />
				</td>
			</tr>
		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					轮胎月总销量--GY装车销量
				</td>
			</tr>
		</table>
		<table width="100%" border="1">
			<thead>
				<tr>
					<td>
						1月
					</td>
					<td>
						2月
					</td>
					<td>
						3月
					</td>
					<td>
						4月
					</td>
					<td>
						5月
					</td>
					<td>
						6月
					</td>
					<td>
						7月
					</td>
					<td>
						8月
					</td>
					<td>
						9月
					</td>
					<td>
						10月
					</td>
					<td>
						11月
					</td>
					<td>
						12月
					</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>
						<input size="5" id="jan" name="jan" class="inputFull" />
					</td>
					<td>
						<input size="5" id="feb" name="feb" class="inputFull" />
					</td>
					<td>
						<input size="5" id="mar" name="mar" class="inputFull" />
					</td>
					<td>
						<input size="5" id="apr" name="apr" class="inputFull" />
					</td>
					<td>
						<input size="5" id="may" name="may" class="inputFull" />
					</td>
					<td>
						<input size="5" id="jun" name="jun" class="inputFull" />
					</td>
					<td>
						<input size="5" id="jul" name="jul" class="inputFull" />
					</td>
					<td>
						<input size="5" id="aug" name="aug" class="inputFull" />
					</td>
					<td>
						<input size="5" id="sep" name="sep" class="inputFull" />
					</td>
					<td>
						<input size="5" id="oct" name="oct" class="inputFull" />
					</td>
					<td>
						<input size="5" id="nov" name="nov" class="inputFull" />
					</td>
					<td>
						<input size="5" id="dec" name="dec" class="inputFull" />
					</td>
				</tr>
			</tbody>
		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					固特异轮胎规格及花纹
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newTireType" />
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteTireType" />
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table width="100%" border="1" id="tireTypeTable">
			<thead>
				<tr>
					<td>
						请选择
					</td>
					<td>
						车型
					</td>
					<td>
						固特异轮胎规格及花纹
					</td>
				</tr>
			<thead>
			<tbody>

			</tbody>
		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					竞争品牌
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newComepeteBrand" />
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteComepeteBrand" />
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table width="100%" border="1" id="complete4sTable">
			<thead>
				<tr bgcolor="#D4D0C8">
					<td align="center" height="25">
						选择
					</td>
					<td align="center" height="25">
						竞争品牌
					</td>
					<td align="center" height="25">
						物流模式
					</td>
					<td align="center" height="25">
						4S店促销
					</td>
					<td align="center" height="25">
						终端促销
					</td>
					<td align="center" height="25">
						4S店培训
					</td>
					<td align="center" height="25">
						库存
					</td>
				</tr>
			</thead>
			<tbody>

			</tbody>
		</table>
		<table>
			<tr>
				<td><input type="button" value="提交"  id="submitForm"/></td>
			</tr>
		</table>
	</form>
	<table id="contractTemple" style="display: none;">
		<tbody>
			<tr>
				<td align="center" height="25">
					<input type="checkbox" />
				</td>
				<td align="center" height="25">
					<input type="text" id="contractName" name="contractList[pContract].contractName"
						class="contractName">
				</td>
				<td align="center" height="25">
					<select id="contractPost_pContract"
						name="contractList[pContract].contractPost" class="contractPost">
						<option>
							请选择
						</option>
						<c:forEach items="${postTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25">
					<input type="text" id="contractList[pContract].contractTel"
						name="contractList[pContract].contractTel" class="contractTel">
				</td>
				<td align="center" height="25">
					<input type="text" id="fax"
						name="contractList[pContract].contractFax" class="contractFax">
				</td>
				<td align="center" height="25">
					<input type="text" id="mobile"
						name="contractList[pContract].contractPhone" class="contractPhone">
				</td>
				<td align="center" height="25">
					<input type="text" id="email"
						name="contractList[pContract].contractEmail" class="contractEmail">
				</td>
			</tr>
		</tbody>
	</table>
	<table id="mainCompleteTemple" style="display: none">
		<tbody>
			<tr>
				<td align="center" height="25">
					<input type="checkbox" class="checkBox">
				</td>
				<td align="center" height="25">
					<select id="brand" name="mainCompleteList[pMainComplete].brand"
						class="brand">
						<option value="0">
							选择
						</option>
						<c:forEach items="${typeBrandTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25">
					<input type="text" id="brandCount"
						name="mainCompleteList[pMainComplete].brandCount"
						class="brandCount">
				</td>
			</tr>
		</tbody>
	</table>
	<table id="tireTypeTemple" style="display: none">
		<tbody>
			<tr>
				<td>
					<input type="checkbox" class="checkBox" />
				</td>
				<td>
					<select id="carType" name="tireTypeList[pTireType].carType"  class="carType">
						<option value="0">
							请选择
						</option>
						<c:forEach items="${carTypeTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td>
					<select id="figure" name="tireTypeList[pTireType].figure"  class="figure">
						<option >
							请选择
						</option>
						<c:forEach items="${typeGrainTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
			</tr>
		</tbody>
	</table>
	<table id="complete4sTemple" style="display: none;">
		<tbody>
			<tr>
				<td align="center" height="25">
					<input type="checkbox" />
				</td>
				<td align="center" height="25">
					<select id="completeBrand" class="completeBrand"
						name="complete4sList[pComplete4s].completeBrand">
						<option value="0">
							请选择
						</option>
						<c:forEach items="${typeGrainTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25">
					<select id="sendType" name="complete4sList[pComplete4s].sendType"  class="sendType">
						<option value="0">
							主机厂直送
						</option>
						<option value="1">
							当地经销商直送
						</option>
						<option value="2">
							轮胎厂直送
						</option>
					</select>
				</td>
				<td align="center" height="25">
					<select id="redetailerPromotion"
						name="complete4sList[pComplete4s].redetailerPromotion"  class="redetailerPromotion">
						<option value="0">
							无
						</option>
						<option value="1">
							有
						</option>
					</select>
				</td>
				<td align="center" height="25">
					<select id="temPromotion"
						name="complete4sList[pComplete4s].temPromotion"   class="temPromotion">
						<option value="0">
							无
						</option>
						<option value="1">
							有
						</option>
					</select>
				</td>
				<td align="center" height="25">
					<select id="train4s"  name="complete4sList[pComplete4s].train4s" class="train4s" >
						<option value="0">
							无
						</option>
						<option value="1">
							有
						</option>
					</select>
				</td>
				<td align="center" height="25">
					<input id="stock" name="complete4sList[pComplete4s].stock" class="stock" />
				</td>
			</tr>
		</tbody>
	</table>
</body>
</html:html>
